<template>
	<view class="technical">
		<view class="content">
			<view class="item" v-for="(item,index) in dataList" :key="index" @click="goTechnicalDetail(item.authen_coup_id)">
				<image :src="item.head_pic" mode=""></image>
				<view class="btm">
					{{item.information_title}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataList:[]
			};
		},
		created() {
			this.getMiaoZhao()
		},
		methods:{
			// 前往详情页面
			goTechnicalDetail(id){
				uni.navigateTo({
					url:'technicalDetail/technicalDetail?id='+id
				})
			},
			// 请求小妙招
			getMiaoZhao(){
				uni.request({
				    url:this.$Url +'/index.php/app/Authentication/authenSkills',
				    method:'POST',
				    data:{
				       p:1
				    },
				    header:{
				        "token":uni.getStorageSync('token')
				    },
				    success: (res) => {
				       if (res.data.status == 200) {
							this.dataList = res.data.data.authentication_list
				       } else{
							uni.showToast({
								title:res.data.msg,
								icon:'none',
								duration:1200
							})
				       }
				    }
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.technical{
	width: 100vw;
	height: 100vh;
	background-color: #f7f7f7;
	.content{
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		padding-top: 20upx;
		.item{
			width: 690upx;
			margin-bottom: 20upx;
			image{
				width: 690upx;
				height: 325upx;
				border-top-right-radius: 20upx;
				border-top-left-radius: 20upx;
				float: left;
			}
			.btm{
				height: 85upx;
				width: 690upx;
				display: flex;
				background-color: #fff;
				align-items: center;
				padding-left: 20upx;
				border-bottom-right-radius: 20upx;
				border-bottom-left-radius: 20upx;
			}
		}
	}

}
</style>
